﻿<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="cancel()">
		<span aria-hidden="true">&times;</span>
	</button>
	<h3 class="modal-title">支付方式</h3>
</div>
<div class="modal-body">
	<table class="table table-hover m-t-md m-b-n">
		<thead>
			<tr>
				<th width="100">通道</th>
				<th>名称</th>
				<th width="80">是否启用</th>
				<th width="80">编号</th>
				<th width="80">结算类型</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in list" ng-class="{'success':is_choose(item.id)}" ng-click="choose_payment(item)">
				<td>{{item.channel|channel_name}}</td>
				<td>{{item.name}}</td>
				<td>{{item.is_open?'启用':'禁用'}}</td>
				<td colspan="5">
					<table class="table">
						<tr ng-repeat="settle in item.settles">
							<td>{{settle.code}}</td>
							<td>{{settle.settle_type}}</td>
						</tr>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" type="button" ng-click="ok()">确认</button>
	<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>